{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<script type="text/javascript" src="__PUBLIC__/js/jquery.126.js" ></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '__URL__';
var APP	 =	 '__APP__';
var PUBLIC = '__PUBLIC__';
var SELF ={:getSelf()};
//-->
</SCRIPT>
<script type="text/javascript" src="../Public/js/Common.js" ></script>
<link href="__PUBLIC__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/layout.css" rel="stylesheet" type="text/css" />
<!-- 主页面开始 -->
<div id="container"><!-- 主体内容  -->
      <form action ="__URL__/doEditConfig/" method="post" >
        <table class="form" width="100%">
          <tbody>
            <tr class="top">
              <td class="tit" colspan="2"></td>
            </tr>
            <tr>
              <th class="tit" colspan="2">礼品全局设置</th>
            </tr>
            <tr>
              <th class="td">说明</th>
              <th class="td">设置</th>
            </tr>
            <tr>
              <td class="td">
                <b>礼品单位:</b></td>
              <td class="td"><label>
                <select name="credit" id="credit">
					  <php>foreach($types as $k=>$v){
					    if($config['creditType']==$k) { </php>
						<option value="{$k}" selected="selected">{$v}</option>
					  <php> } else { </php>	
						<option value="{$k}">{$v}</option>
					  <php> }} </php>					
              </select>
              </label></td>
            </tr>
            <tr>
              <td class="td" colspan="2">
                <input type="submit" class="button" value="提交" />  </td>
            </tr>
            <tr class="bottom">
              <td class="border" colspan="5">&nbsp;</td>
            </tr>
          </tbody>
        </table>
      </form>
<!-- 列表显示区域  -->
<div style="text-align:left;">
<input type="submit" onclick="addGift();" value="添加" class="button" />
<input type="submit" onclick="del();" value="删除" class="button" />
<input type="submit" onclick="forbid();" value="锁定" class="button" />
<input type="submit" onclick="resume();" value="恢复" class="button" />
共有个 {$list.count} 礼品
<div id="result" class="result none"></div>

<div id="Pagination" class="pagination">{$list.html}</div>
<table width="100%" border="0" cellpadding="3" cellspacing="0" class="form" id="checkList">
<tr>
<td align="center" class="th"><strong>
  <input id="check" onclick="CheckAll('checkList')" type="checkbox">
</strong></td>
<td class="th"><strong><a title="按照编号">编号</a></strong></td>
<td class="th"><strong><a title="按照图片">图片</a></strong></td>
<td class="th"><strong><a title="按照名称">名称</a></strong></td>
<td class="th"><strong><a title="按照价格">价格</a></strong></td>
<td class="th"><strong><a title="按照数量">数量</a></strong></td>
<td class="th"><strong><a title="按照时间">时间</a></strong></td>
<td class="th"><strong><a title="按照状态">状态</a></strong></td>
<td class="th"><strong><a title="操作">操作</a></strong></td>
</tr>
<volist id="vo" name="list.data">
<tr>
<td align="center" class="td"><input name="key" value="{$vo.id}" type="checkbox"></td>
<td class="td">{$vo.id}</td>
<td height="70" class="td"><img src="../Public/gift/{$vo.img}" /></td>
<td class="td">{$vo.name}</td>
<td class="td">{$vo.price}</td>
<td class="td">{$vo.num}</td>
<td class="td">{$vo.cTime|friendlyDate}</td>
<td class="td">{$vo.status|getStatus}</td>
<td class="td">
	<php>if($vo['status']==0){</php>
		<a href="__URL__/resume/id/{$vo.id}">恢复</a>
	<php>}else{</php>
		<a href="__URL__/forbid/id/{$vo.id}">锁定</a>
	<php>}</php>
	<a href="javascript:edit('{$vo.id}')">编辑</a>
	<a href="javascript:del('{$vo.id}')">删除</a></td>
</tr>
</volist>
</table>

</div>
<!--  分页显示区域 -->
<div id="Pagination" class="pagination">{$list.html}</div>
<!-- 列表显示区域结束 -->
</fieldset>
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->
{// 加载尾部公共文件 }
<include file="../Public/footer" />